<?php
function member_ribbons($member)
{
	global $ipsclass;
	$html = "";
	$ribbons = $member['topic_ribbons'] ? unserialize($member['topic_ribbons']) : array();
	$ribbons = is_array($ribbons) ? $ribbons : array();
	foreach($ribbons as $r)
	{
		$html .= "<img src='".$ipsclass->vars['board_url']."/images/market/ribbons/".implode("' alt=''><img src='".$ipsclass->vars['board_url']."/images/market/ribbons/",$r)."' alt=''>";
	}
	
	return $html;
}
?>